package com.miniserver.tql.task;

import java.util.TimerTask;

import com.miniserver.tql.TqlGlobal;
import com.miniserver.util.LogUtil;

public class HsqlSyncTask extends TimerTask {
	public HsqlSyncTask() {
		// ..
	}

	LogUtil log = LogUtil.getLogUtil("HsqlSyncTask");

	@Override
	public void run() {
		if (TqlGlobal.INIT_SUCCESS == TqlGlobal.status) {
			try {
				TqlGlobal.getTqlMaster().dataSync();
			} catch (Exception e) {
				log.error("run", e);
			}
		} else {
			log.debug("初始化状态为false!");
			return;
		}
	}
}